<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base target="_self">
    
    <title>上传图片</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<jsp:include page="/page/head.jsp"></jsp:include>
	<script type="text/javascript">
		function upload(){
			if($('#image').val() != null){
				$('#uploadform').submit();
			}
		}
		
		function winClose(){
			window.close();
		}
	</script>
  </head>
  
  <body>
  <div class="right">
	<form id="uploadform" action="<%=path %>/image/upload.do" enctype="multipart/form-data" method="post">
		<div class="ri_main">
			<table height="50" width="280" border="0" cellspacing="1" cellpadding="8" style="background:#d9d9d9;">
			   <tr>
			    <td align="center" bgcolor="#FFFFFF" colspan="2">
					<input id="image" name="image" type="file">
				</td>
			   </tr>
			   <tr>
			    <td align="center" bgcolor="#FFFFFF" colspan="2">
					<a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-ok" onclick="upload()">上传</a>
					<a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-undo" onclick="winClose()">取消</a>
				</td>
			   </tr>
			</table>
		</div>
	</form>
	</div>
  </body>
</html>